#pragma once
#include <iostream>
#include <string>
using namespace std;

class Util
{
public:
    // GET url version\r\n
    static string getOneLine(string& inbuffer,const string& SEP)
    {
        auto pos = inbuffer.find(SEP);
        if(pos == string::npos)
        {
            return "";
        }

        string sub = inbuffer.substr(0, pos);
        inbuffer.erase(0, inbuffer.size() + SEP.size());
        return sub;
    }
};